from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
from Ebidding.auction.views import *
import os
media=site_media = os.path.join(
  os.path.dirname(__file__), 'media'
)
#import haystack

#haystack.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^Ebidding/', include('Ebidding.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     (r'^admin/(.*)', admin.site.root),
     url(r'^$', main_page,name="main_page"),
     url(r'^item/(?P<Id>\w+)/$', items_detail,name="itemdetail"),
     
     (r'^media/(?P<path>.*)$', 'django.views.static.serve',{ 'document_root': media }),
	 #(r'^search/', include('haystack.urls')),
	 (r'^search/$','auction.views.search'),
)
